package org.jeecg.modules.health_records.family_doctor.service.impl;

import org.jeecg.modules.health_records.emergency_contact.mapper.EmergencyContactInfoMapper;
import org.jeecg.modules.health_records.family_doctor.entity.FamilyDoctorInfo;
import org.jeecg.modules.health_records.family_doctor.mapper.FamilyDoctorInfoMapper;
import org.jeecg.modules.health_records.family_doctor.service.IFamilyDoctorInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 家庭签约医生信息表
 * @Author: jeecg-boot
 * @Date:   2025-06-25
 * @Version: V1.0
 */
@Service
public class FamilyDoctorInfoServiceImpl extends ServiceImpl<FamilyDoctorInfoMapper, FamilyDoctorInfo> implements IFamilyDoctorInfoService {
    @Autowired
    private FamilyDoctorInfoMapper familyDoctorInfoMapper;
    /**按recordid查询**/
    @Override
    @Transactional(rollbackFor = Exception.class)
    public List<FamilyDoctorInfo> queryByRecordId(FamilyDoctorInfo familyDoctorInfo) {
        return familyDoctorInfoMapper.queryByRecordId(Long.valueOf(familyDoctorInfo.getRecordid()),familyDoctorInfo.getIdNumber());

    }
}
